<?php

namespace hth\api\v1;

use hth\Request;

class Goods extends Request{

    public function detail(array $data=[]){
        $this->type='POST';
        $this->path='/oapi/product/detail';

        $this->data= array_merge($this->data,$data);
        return $this->exec();
    }

    //
    public function goods_lst(array $data=[]){
        $this->type='POST';
        $this->path='/oapi/product/lst';

        $this->data= array_merge($this->data,$data);
        return $this->exec();
    }

    public function brand(array $data=[]){
        $this->type='POST';
        $this->path='/goods_brand/get_list';

        $this->data= array_merge($this->data,$data);
        return $this->exec();
    }

    //分类列表
    public function category(array $data=[]){
        $this->type='POST';
        $this->path='/oapi/product/category/lst';

        $this->data= array_merge($this->data,$data);
        return $this->exec();
    }

    public function goodsSpecPriceBatch(array $data=[]){
                $this->type='POST';
        $this->path='/goods/get_goods_spec_price_batch';

        $this->data= array_merge($this->data,$data);
        return $this->exec();
    }

    public function goodsSpecPrice(array $data=[]){
        $this->type='POST';
        $this->path='/goods/get_goods_spec_price';

        $this->data= array_merge($this->data,$data);
        return $this->exec();
    }

    //活动商品
    public function activityGoods(array $data=[]){
        $this->type='POST';
        $this->path='/goods/get_activity_goods_list';

        $this->data= array_merge($this->data,$data);
        return $this->exec();
    }

    //特划算商品
    public function thsActivityGoods(array $data=[]){
        $this->type='POST';
        $this->path='/goods/get_ths_activity_list';

        $this->data= array_merge($this->data,$data);
        return $this->exec();
    }

    //商品订阅
    public function goodsSubscribe(array $data=[]){
        $this->type='POST';
        $this->path='/goods/goods_subscribe';

        $this->data= array_merge($this->data,$data);
        return $this->exec();
    }
}